package cn.edu.sgu.www.mhxysy.service.exp.impl;

import cn.edu.sgu.www.mhxysy.entity.exp.ExpCategory;
import cn.edu.sgu.www.mhxysy.mapper.exp.ExpCategoryMapper;
import cn.edu.sgu.www.mhxysy.service.exp.ExpCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class ExpCategoryServiceImpl implements ExpCategoryService {

    private final ExpCategoryMapper expCategoryMapper;

    @Autowired
    public ExpCategoryServiceImpl(ExpCategoryMapper expCategoryMapper) {
        this.expCategoryMapper = expCategoryMapper;
    }

    @Override
    public List<ExpCategory> selectAll() {
        return expCategoryMapper.selectList(null);
    }

    @Override
    public ExpCategory selectById(Integer id) {
        return expCategoryMapper.selectById(id);
    }

}